import Layout from '@/layout'

export default {
  path: '/employees',
  component: Layout,
  name: 'employees',
  children: [{
    path: '',
    name: 'employees',
    component: () => import('@/views/employees/index'),
    meta: { title: '员工', icon: 'people' }
  },

   // 访问起来就是 /employees/detail
   {
    name: 'detail', 
    path: '/employees/detail', 
    component: () => import('@/views/employees/EmpDetail/index'), 
    hidden: true,
    meta: {
      // 埋了个伏笔，后面用，但是加了title会显示到左侧导航栏
      // 不需要显示，所以在上面加了个hidden
      title: '员工详情'
    }
  },
  // 访问起来就是 /employees/print
  {
    name: 'print', 
    path: '/employees/print', 
    hidden: true,
    component: () => import('@/views/employees/print/index'), 
    meta: {
      // 埋了个伏笔，后面用，但是加了title会显示到左侧导航栏
      // 不需要显示，所以在上面加了个hidden
      title: '打印页面'
    }
  },

]
}
